import api from './api'

// 获取分类
export const getGoodsType = () => {
	return api.get(`/index/goodsType`).then(res => {
		return res.data
	})
}

// 获取对应分类数据
export const getGoodsList = id => {
	return api.get(`/index/goods/${id}`).then(res => {
		return res.data
	})
}

